package BC76_公务员面试;

import java.util.ArrayList;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> arr = new ArrayList<>();
        for (int i = 0; i < 7; i++){
            arr.add(sc.nextInt());
        }
        arr.sort(Integer::compareTo);
        int sum = 0;
        for (int i = 1; i < 6; i++){
            sum += arr.get(i);
        }
        double avg = sum / 5.0;
        System.out.printf("%.2f", avg);
    }
}
